<%@page import="java.util.List"%>
<%@page import="com.crm.entity.Opportunity"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script  type="text/javascript">
$(document).ready(function() {
		$('#enqtab').dataTable();
	} );
</script>
</head>
<body>
<div class="boxIFS">
<div class="demo">
        <table width="100%" border="0"  id="enqtab" cellpadding="4" cellspacing="1" bgcolor="#C5E4EB">
        <thead>
          <tr>
            <th width="36" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"  style="background-repeat:repeat-x">S.No </th>
            <th width="186" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Reference Number</th>
            <th width="162" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF"> Enquiry Number</th>
            <th width="138" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"  style="background-repeat:repeat-x bgcolor="#FFFFFF">Type of Enquiry</th>
            <th width="140" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Project Name</th>
            <th width="140" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Status</th>
          </tr>
          </thead>
          <tbody>
          <% List<Opportunity> enqlst=(List<Opportunity>)request.getAttribute("srchEnqList"); 
          for(int i=0;i<enqlst.size();i++){
          %>
          
          <tr>
            <td align="center" bgcolor="#FFFFFF" ><%=i+1 %></td>
            <td  align="center" valign="top" bgcolor="#FFFFFF"><a href="<%=application.getContextPath() %>/editEnq/setSrchEnq.do?refNo=<%=enqlst.get(i).getRefNum() %>" > <span style="color: red;"><%= enqlst.get(i).getRefNum() %></span></a></td>
            <td bgcolor="#FFFFFF" align="center" valign="top" bgcolor="#FFFFFF"><%=enqlst.get(i).getEnqnum() %></td>
            <td bgcolor="#FFFFFF" align="center" valign="top" bgcolor="#FFFFFF"><%=enqlst.get(i).getEnquirytype() %></td>
            <td bgcolor="#FFFFFF" align="center" valign="top" bgcolor="#FFFFFF"><%=enqlst.get(i).getProjName() %></td>
           <td bgcolor="#FFFFFF" align="center" valign="top" bgcolor="#FFFFFF"><%=enqlst.get(i).getStatus() %></td>
          </tr>
         <%} %>
         </tbody>
        </table>
        </div>
      </div>
	 
</body>
</html>